package mvc.selix;

import mvc.CurveModel;

import org.geom.curve.ICurve;
import org.geom.curve.SElix;

public class SelixModel extends CurveModel {

	//-------------------------------------------------------- constructor
	public SelixModel(SElix curve) {
		super(curve);
	}
		
	//-------------------------------------------------------- Selix
	
	protected float getK() {
		return ((SElix) curve).getK();
	}

	protected float getR() {
		return ((SElix) curve).getR();
	}

	protected ICurve getTrunk() {
		return ((SElix) curve).getTrunk();
	}

	protected float getU() {
		return ((SElix) curve).getU();
	}

	protected void setK(float t, boolean increment) {
		((SElix) curve).setK(t, increment);
		dirty = true;
	}

	protected void setR(float t, boolean increment) {
		((SElix) curve).setR(t, increment);
		dirty = true;
	}

	public void setTrunk(ICurve trunk) {
		((SElix) curve).setTrunk(trunk);
		dirty = true;
	}

	protected void setU(float t, boolean increment) {
		((SElix) curve).setU(t, increment);
		dirty = true;
	}
	@Override
	public Object getData() {
		// TODO Auto-generated method stub
		return curve;
	}
	
}
